package com.baimuzhi.live.config;

import com.baimuzhi.live.entity.LiveConfig;
import com.baimuzhi.live.entity.LiveConfigList;
import com.baimuzhi.live.utils.ConfigBuild;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName : BeanConfig
 * @Description :
 * @Author : 肖叶茂
 * @Date: 2023/1/18  16:08
 */
@Configuration
public class BeanConfig {

    @Autowired
    private LiveConfigList liveConfigList;


    @Bean
    public ConfigBuild getConfigBuild(){
        return new ConfigBuild().initConfigBuild(liveConfigList);
    }

}
